#include "homefind.h"
#include "ui_homefind.h"
#include "sqlcontroller.h"

#include <QDebug>

HomeFind::HomeFind(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::HomeFind)
{
    ui->setupUi(this);
    this->setWindowTitle("查询");
    this->setWindowModality(Qt::WindowModality::ApplicationModal);//将窗口设置为模态

}

HomeFind::~HomeFind()
{
    delete ui;
}

void HomeFind::on_ok_btn_clicked()
{
    SqlController::getSqlController()->setName(ui->find_edit->text());
    qDebug()<<"2222";
    emit find();
    qDebug()<<"3333";
}


void HomeFind::on_quit_btn_clicked()
{
    this->hide();
}

